package com.suitsoft.bdms.dao.commos;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springside.modules.orm.hibernate.HibernateDao;

import com.suitsoft.bdms.entity.system.SubPointEntiry;

/**
 *
 *@author Suine
 */
@Repository
public class SubPointDao extends HibernateDao<SubPointEntiry,Long>{
	/** 日志输出对象 */
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public Map<String,Object> findSycUserByLoginName(String loginName){
		String sql = "SELECT * FROM SYNC_USER U WHERE U.LOGIN_NAME = '"+loginName+"'";
		return jdbcTemplate.queryForMap(sql);
	}

}

